num_list = [11,22,33,44,55,66,77,88,99]
# num_list[start : end : add] 取起始下标到(结束下标-1)结束
#      [起始下标 : 结束下标 : 步长]

# 三参 [start : end : add]
print(num_list[0:3:1]) #11,22,33

# 两参 [start : end] 步长默认为1
print(num_list[1:4]) #22,33,44

# add 从头取到尾
print(num_list[::1]) #11,22,33,44,55,66,77,88,99

# start X下标取到尾
print(num_list[2::]) #33,44,55,66,77,88,99

# end 从头取到下标X
print(num_list[:5:]) #11,22,33,44,55

# 倒叙输出
print(num_list[::-1])

for i in num_list[1:4]:
    print(i)